From acc0899ef41e763c665c542beca6809049fac11c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roger=20Pau=20Monn=C3=A9?= Date: Fri, 15 May 2015 10:07:50 +0200 Subject: [PATCH] x86/hap: make hap_track_dirty_vram use non-contiguous memory for temporary map MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Just like it's done for shadow_track_dirty_vram allocate the temporary buffer using non-contiguous memory. Signed-off-by: Roger Pau Monné Reviewed-by: Tim Deegan --- xen/arch/x86/mm/hap/hap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/mm/hap/hap.c b/xen/arch/x86/mm/hap/hap.c index c28a6e3a50..cea7990fe9 100644 --- a/xen/arch/x86/mm/hap/hap.c +++ b/xen/arch/x86/mm/hap/hap.c @@ -87,7 +87,7 @@ int hap_track_dirty_vram(struct domain *d, } rc = -ENOMEM; - dirty_bitmap = xzalloc_bytes(size); + dirty_bitmap = vzalloc(size); if ( !dirty_bitmap ) goto out; @@ -174,7 +174,7 @@ int hap_track_dirty_vram(struct domain *d, p2m_ram_logdirty, p2m_ram_rw); } out: - xfree(dirty_bitmap); + vfree(dirty_bitmap); return rc; } -- 2.30.2